/*基本*/

interface ResponseData {
  code: number
  message: string
}

export interface SysMenu {
  id: number
  menuName: string
  icon: string
  parentId: number
  orderNum: number
  path: string
  component: string
  query: string
  isFrame: string
  isCache: string
  menuType: string
  perms: string
  remark: string
  visible: string
  status: string
  children?: SysMenu[]
}

export interface NodeType {
  value: number
  label: string
  length: number
  children: NodeType[]
}

/////////////////////////////////////////////////
/*分页插叙*/
export interface responseMenuDate extends ResponseData {
  data: {
    menuList: SysMenu[]
  }
}

/*获取info*/
export interface responseMenuInfo extends ResponseData {
  data: SysMenu
}

////////////////////////////////////////////////////////
export interface Tree {
  id: number
  label: string
  children?: Tree[]
}

export interface reqMenuTreeSelectData extends ResponseData {
  data: Tree[]
}


export interface RoleMenuTreeselect extends ResponseData{
  menus: [],
  checkedKeys: []
}
